<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <link href='{{ asset('bundles/css/font-open-sans.css') }}' rel='stylesheet'>
        <link rel="stylesheet" href="{{ asset('bundles/css/style-login.css') }}" />
        <title>Connectez vous pour acceder à l'application</title>
    </head>
    <body>
        <div id="body">
                <h1>Connectez vous pour acceder à l'application </h1>
                {% for type, messages in app.session.flashBag.all %}
                    {% for message in messages %}
                        <div class="{{ type }}">
                            {{ message|trans({}, 'FOSUserBundle') }}
                        </div>
                    {% endfor %}
                {% endfor %}

					{% if error %}
					    <div class="error">{{ error|trans({}, 'FOSUserBundle') }}</div>
					{% endif %}

					<form action="{{ path("fos_user_security_check") }}" method="post">
						    <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
						    <input type="text" placeholder="Nom d'utilisateur" id="username" name="_username" value="{{ last_username }}" required="required" />
						    <input type="password" placeholder="Mot de passe" id="password" name="_password" required="required" />
						    <input type="submit" id="_submit" name="_submit" value="Connexion" />
							<input type="checkbox" id="remember_me" name="_remember_me" value="on" /> <span>Se Souvenir de Moi</span>
					</form>
            </div>
    </body>
</html>
